package com.limit.currentlimiting.controller;

import com.google.common.util.concurrent.RateLimiter;
import com.limit.currentlimiting.annotation.Limit;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LimitController {
    @GetMapping("/get")
    @Limit(name = "get", token = 1.0D)
    public String get() {
        return "get message";
    }
}
